//
//  HYBaseHandler.h
//  Around
//
//  Created by 华谕 on 2017/6/13.
//  Copyright © 2017年 HUYU. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpTool.h"

//处理理事件成功
typedef void(^SuccessBlock)(id obj);

//处理事件失败
typedef void(^FailedBlock)(NSError *error);

typedef enum{
    GET,
    POST
} RequestType;


@interface HYBaseHandler : NSObject



//通用表单
+ (void)requestWithTheFormUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通用Json
+ (void)requestWithJsonUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;


@end
